﻿@model ComicTracker.Models.Issue
           
@{
    ViewBag.Title = "Create New Issue";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Issue</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.SeriesID, "Series")
        </div>
        <div class="editor-field">
            @Html.DropDownList("SeriesID", String.Empty)
            @Html.ValidationMessageFor(model => model.SeriesID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IssueNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IssueNumber)
            @Html.ValidationMessageFor(model => model.IssueNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Variant)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Variant)
            @Html.ValidationMessageFor(model => model.Variant)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Edition)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Edition)
            @Html.ValidationMessageFor(model => model.Edition)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Subtitle)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Subtitle)
            @Html.ValidationMessageFor(model => model.Subtitle)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ReleaseDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ReleaseDate)
            @Html.ValidationMessageFor(model => model.ReleaseDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NumPages)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NumPages)
            @Html.ValidationMessageFor(model => model.NumPages)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CoverPrice)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CoverPrice)
            @Html.ValidationMessageFor(model => model.CoverPrice)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    <a href="@ViewBag.LastPage">Back to List</a>
</div>
